import request from '@/utils/request'

// 查询题目分类列表
export function listQuestionCategory(query) {
    return request({
        url: '/business/QuestionCategory/list',
        method: 'get',
        params: query
    })
}

// 查询所有题目分类列表
export function allListQuestionCategory() {
    return request({
        url: '/business/QuestionCategory/allList',
    })
}

// 查询题目分类详细
export function getQuestionCategory(questionCategoryId) {
    return request({
        url: '/business/QuestionCategory/' + questionCategoryId,
        method: 'get'
    })
}

// 新增题目分类
export function addQuestionCategory(data) {
    return request({
        url: '/business/QuestionCategory',
        method: 'post',
        data: data
    })
}

// 修改题目分类
export function updateQuestionCategory(data) {
    return request({
        url: '/business/QuestionCategory',
        method: 'put',
        data: data
    })
}

// 删除题目分类
export function delQuestionCategory(questionCategoryId) {
    return request({
        url: '/business/QuestionCategory/' + questionCategoryId,
        method: 'delete'
    })
}
